class resources:
    def __init__(self,useRemote):
        self.rlist = []
        f = open('machines.txt','r')
        for s in f.readlines():
            m = machine(s.split(','))
            if(m.type=='local' or useRemote):   
                self.rlist.append(m) 

class machine:
    def __init__(self, specs):
        self.name = specs[0]
        self.type = specs[1]
        self.adress = specs[2]
        self.user = specs[3]
        self.passw = specs[4]
        
    def __str__(self):
        return self.name + " as " + self.user